// map863Doc.h : interface of the Cmap863Doc class
//


#pragma once

#include "SingleLayer.h"

#define MAXLAYERS 30

class Cmap863Doc : public CDocument
{
protected: // create from serialization only
	Cmap863Doc();
	DECLARE_DYNCREATE(Cmap863Doc)

// Attributes
public:
	CDialogBar testctrlbar;
	
public:
	CSingleLayer * SingleLayer[MAXLAYERS];
	bool IsLayerInit[MAXLAYERS];

// Operations
public:

// Overrides
public:
	virtual BOOL OnNewDocument();
	virtual void Serialize(CArchive& ar);

// Implementation
public:
	virtual ~Cmap863Doc();
#ifdef _DEBUG
	virtual void AssertValid() const;
	virtual void Dump(CDumpContext& dc) const;
#endif

protected:
	bool GetNextLine(char * FileBuf, unsigned long * FileLength, char * Lineout, unsigned long * FilePos);

// Generated message map functions
protected:
	DECLARE_MESSAGE_MAP()
public:
	bool CleanExistedLayer(void);
public:
	CString BGImagePath;
	int BGWidth;
	int BGHeight;

};


